package MyReentrant;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class MyReentrantLock {
    public static void main(String[] args) {
        Fun fun = new Fun();
        for (int i = 0; i < 1000; i++) {
            new Thread(()->{
                fun.add();
            }).start();
        }
    }
}
